package com.ruoyi.dl.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 扣款记录对象 dl_order_deduction
 * 
 * @author ruoyi
 * @date 2021-01-14
 */
public class DlOrderDeduction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 扣除金额 */
    @Excel(name = "扣除金额")
    private BigDecimal deductionMorny;

    /** 分类 */
    @Excel(name = "分类")
    private Integer deductionType;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    @Excel(name = "扣款原因")
    private String deductionReason;

    private DlOrders dlOrders;

    private DlUser dlUser;

    public String getDeductionReason() {
        return deductionReason;
    }

    public void setDeductionReason(String deductionReason) {
        this.deductionReason = deductionReason;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setDeductionMorny(BigDecimal deductionMorny) 
    {
        this.deductionMorny = deductionMorny;
    }

    public BigDecimal getDeductionMorny() 
    {
        return deductionMorny;
    }
    public void setDeductionType(Integer deductionType) 
    {
        this.deductionType = deductionType;
    }

    public Integer getDeductionType() 
    {
        return deductionType;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return "DlOrderDeduction{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", deductionMorny=" + deductionMorny +
                ", deductionType=" + deductionType +
                ", userId=" + userId +
                ", deductionReason='" + deductionReason + '\'' +
                '}';
    }
}
